<template>
  <div>
    <el-table :data="admins">
      <el-table-column label="账号" prop="username" width="260px">
      </el-table-column>
      <el-table-column label="姓名" prop="nickname" width="260px">
      </el-table-column>
      <el-table-column
        label="手机号"
        prop="phone"
        width="260px"
      ></el-table-column>
      <el-table-column label="邮箱" prop="email" width="270px">
      </el-table-column>
      <el-table-column label="操作">
        <el-button
          type="primary"
          icon="el-icon-edit"
          circle
          @click="openalert()"
        ></el-button>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      admins: [],
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      formLabelWidth: "120px",
    };
  },

  methods: {
    openalert() {
      this.$message.error("本页暂无权限--如需更改--请联系超级管理员!");
    },
  },

  mounted() {
    this.$http.adminApi.queryAll().then((res) => {
      console.log(res);
      this.admins = res.data.data;
    });
  },
};
</script>

<style lang="scss" scoped>
</style>